package com.association.main.controller;

import com.association.main.common.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/user")
public class TestController {

    @PostMapping("/login")
    public R<String> login(String userName,String passWord){
        log.info(userName+"||"+passWord);
        return R.success("登录成功");
    }
}
